package com.it.springbootjpa.query;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class ContractQury {
    private Long contractNum; 
    private Boolean contractStatus;
    private String contractType; 
    private String name; 
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date contractStart; 
    //当前页数
    private Integer currentPage = 1;
    //每页显示多少条
    private Integer pageSize = 30;
    public Integer getBeginIndex(){
        return (currentPage-1)*pageSize;
    }
}
